package Airport;


public class DelayFlight extends Flight {

	public DelayFlight(int id, int seats) {
		super(id,seats);
	}
	public DelayFlight(int id,Passenger[] passengers) {
		super(id,passengers);
	}


	@Override
	public void addPassenger(Passenger passenger) {
		System.out.println("Warning. This flight was delayed");
		super.addPassenger(passenger);
	}
	
	@Override
	protected String getTypeDescription() {
		return "Delayed flight.";
	}
}
